package com.kjj.gift.exception.code;

public enum StatusCode {
    CODE_500(500,"系统繁忙，稍后重试！"),
    CODE_400(4000001,"参数不正确！"),
    CODE_400_TENANT_EXSIT(4000002,"该店铺已经存在！"),
    CODE_400_TENANT_ADMIN_EXSIT(4000003,"店铺管理员已经存在！"),
    CODE_400_USER_EXSIT(4000004,"改手机已经被注册！直接登陆使用！"),
    CODE_400_CODE_NOT_EQUALS(4000005,"验证码不正确！"),
    CODE_403_FORBIDDEN(403001,"您没有权限，请联系管理员！"),
    CODE_400_CODE_USERNAME_OR_PASSWORD_ERROR(4000006,"用户名或密码不对");

    //枚举属性
    private int code;
    private String message;

    //枚举构造函数
    StatusCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    //枚举属性getter,setter方法
    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
